package com.imooc.service;

import com.imooc.BO.UserBO;
import com.imooc.pojo.Users;

/**
 * @author gcq
 * @Create 2022-01-04
 */
public interface UserService {

    /**
     * 查询用户是否存在
     * @param userName
     * @return
     */
    boolean queryUserNameIsExist(String userName);

    /**
     * 创建用户
     * @param userBO
     * @return
     */
    Users createUser(UserBO userBO);

    Users queryUserForLogin(String username, String password);
}
